const org_route = {
  path: 'Org',
  name: 'Org',
  meta: {
    title: '组织架构',
    icon: 'el-icon-s-home',
    isReadonlyBreadcrumb: true,
  },
  children: [
    {
      path: 'Department',
      name: 'Department',
      meta: {
        title: '部门',
        icon: 'el-icon-s-home',
      },
      component: () => import('@/views/Org/Department.vue'),
    },
    {
      path: 'Job',
      name: 'Job',
      meta: {
        title: '职位',
        icon: 'el-icon-s-home',
      },
      children: [
        {
          path: '',
          name: 'JobIndex',
          meta: {
            isHideBreadcrumb: true,
          },
          component: () => import('@/views/Org/Job.vue'),
        },
        {
          path: 'Edit',
          name: 'EditJob',
          meta: {
            title: '编辑职位',
            icon: 'el-icon-s-home',
          },
          component: () => import('@/views/Org/Job/EditJob.vue'),
        },
        {
          path: 'Add',
          name: 'AddJob',
          meta: {
            title: '添加职位',
            icon: 'el-icon-s-home',
          },
          component: () => import('@/views/Org/Job/AddJob.vue'),
        },
      ],
    },
    {
      path: 'User',
      name: 'User',
      meta: {
        title: '职位',
        icon: 'el-icon-s-home',
      },
      children: [
        {
          path: '',
          name: 'UserIndex',
          meta: {
            isHideBreadcrumb: true,
          },
          component: () => import('@/views/Org/User.vue'),
        },
        {
          path: 'Edit',
          name: 'EditUser',
          meta: {
            title: '编辑用户',
            icon: 'el-icon-s-home',
          },
          component: () => import('@/views/Org/User/EditUser.vue'),
        },
        {
          path: 'Add',
          name: 'AddUser',
          meta: {
            title: '添加用户',
            icon: 'el-icon-s-home',
          },
          component: () => import('@/views/Org/User/AddUser.vue'),
        },
      ],
    },
  ],
};

export default org_route;
